Version 3.0 User's Guide |
|
Using Nested INSERT Commands |
Previous |
Next Contents |
Finally, you can combine the power of NetCloak commands in more interesting ways, by nesting any INSERT command as a parameter inside another NetCloak command. When nesting commands, the nested INSERT command must not be enclosed in double-quotes (otherwise, it is treated as plain text). Here are some examples of nested commands:
Create a counter with the name of the current URL:
<INSERT_COUNT <INSERT_THISURL>>
Maintain a count of hits from each distinct browser type:
<INSERT_COUNT <INSERT_CLIENT>>
Redirect to a user-selected URL:
<REDIRECT <INSERT_VARIABLE selectedURL>>
Insert a macro file based on the current date
<SET_LOCAL todaysMacro = "/DatedMacros/" & <INSERT_DATE SHORT>> <MACRO <INSERT_LOCAL todaysMacro>>
Redirect to a selected page in a certain folder:
<REDIRECT /newPath/<INSERT_VARIABLE selectedPage>>
Using Nested INSERT commands can be tricky, and we recommend only using them when you are very familiar with how NetCloak works and the commands being used.
Copyright © 1996-1999 Maxum Development Corporation http://www.maxum.com/ |
Previous |
Next Contents |